$f: 19.2;

.home {
  .banner {
    margin-top: 98/$f+vw;
    padding: 142/$f+vw 260/$f+vw 0 260/$f+vw;
    background: linear-gradient(180deg, #DBEAFF 0%, rgba(238, 245, 255, 0.00) 100%);

    .t {
      color: #000;
      font-size: 48/$f+vw;
      line-height: 1;
      text-align: center;
    }

    .tip {
      margin: 41/$f+vw 0 81/$f+vw 0;
      color: #000;
      font-size: 16/$f+vw;
      text-align: center;
    }

    .boxs {
      margin-bottom: 16/$f+vw;

      .box {
        display: none;
        .info {
          display: flex;
          justify-content: space-between;
          background: white;
          align-items: center;

          .l {
            width: calc(100% - 24vw);
            padding: 0 40/$f+vw;

            .p1 {
              color: #000;
              font-size: 24/$f+vw;
              font-weight: 500;
              margin-bottom: 20/$f+vw;
            }

            .tags {
              line-height: 1.8;

              span {
                font-size: 16/$f+vw;
                color: #333;

                &:first-child {
                  color: #999;
                }
              }
            }
          }

          .r {
            overflow: hidden;
            img {
              width: 460/$f+vw;
              height: 330/$f+vw;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
            &:hover{
              img{
                transform: scale(1.05);
              }
            }
          }
        }
      }
      .show_box{
        display: block;
      }
    }

    .types {
      display: flex;
      justify-content: space-between;

      .item {
        border-right: 1px solid rgba(0, 0, 0, 0.10);
        background: #FFF;
        width: 25%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 43/$f+vw 0;
        position: relative;
        transition: all 600ms;
        cursor: pointer;

        &::after {
          content: '';
          display: block;
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: 4/$f+vw;
          background: #1A53F0;
          transition: all 600ms;
          opacity: 0;
        }

        .icon {
          img {
            width: 42/$f+vw;
            display: block;
          }
        }

        p {
          margin-left: 25/$f+vw;
          font-size: 20/$f+vw;
          color: #333;
        }

        &:last-child {
          border-right: none;
        }
      }

      .on {
        &::after {
          opacity: 1;
        }
      }
    }
  }

  .main {
    margin: 158/$f+vw 260/$f+vw 70/$f+vw 260/$f+vw;

    .t {
      color: #000;
      font-size: 40/$f+vw;
      font-weight: 600;
      text-align: center;
      letter-spacing: 2/$f+vw;

      span {
        color: #1A53F0;
      }
    }

    .search {
      margin: 60/$f+vw 0 24/$f+vw 0;
      display: flex;
      justify-content: center;

      .sr {
         position: relative;
         .icon{
            position: absolute;
            left: 12/$f+vw;
            top:50%;
            transform: translateY(-50%);
            z-index: 10;
            svg{
              width: 20/$f+vw;
              display: block;
            }
         }
        input {
          display: flex;
          width: 700/$f+vw;
          height: 48/$f+vw;
          padding: 13/$f+vw 12/$f+vw;
          padding-left: 40/$f+vw;
          align-items: center;
          gap: 10/$f+vw;
          border-top: 1px solid rgba(0, 0, 0, 0.10);
          border-bottom: 1px solid rgba(0, 0, 0, 0.10);
          border-left: 1px solid rgba(0, 0, 0, 0.10);
          background: #FFF;
          border-right: none;
          font-size: 16/$f+vw;
          color:#000;
          &::placeholder{
            color: #999;
          }
        }
      }

      .btn {
        display: flex;
        width: 96/$f+vw;
        height: 48/$f+vw;
        padding: 11/$f+vw 0px;
        justify-content: center;
        align-items: center;
        gap: 10/$f+vw;
        border-radius: 0px 4px 4px 0px;
        background: #1A53F0;
        color: #FFF;
        font-size: 16/$f+vw;
        cursor: pointer;
      }
    }
    .hot{
      display: flex;
      width: 796/$f+vw;
      margin: 0 auto;
      .p1{
        color: #999;
        font-size: 16/$f+vw;
      }
      .tags{
        span{
          color: #000;
          font-size: 16/$f+vw;
          margin: 0 16/$f+vw;
          cursor: pointer;
        }
        .on{
          color:#1A53F0;
        }
      }
    }
    .list{
      margin-top: 186/$f+vw;
      .item{
        background: #F6F9FF;
        padding: 40/$f+vw;
        margin-bottom: 40/$f+vw;
        position: relative;
        .name{
          color: #000;
          font-size: 20/$f+vw;
          font-weight: 500;
          border-bottom: 1px solid rgba(0, 0, 0, 0.10);
          padding-bottom: 20/$f+vw;
        }
        .tags {
          line-height: 1.8;
          margin-top: 20/$f+vw;
          span {
            font-size: 16/$f+vw;
            color: #333;

            &:first-child {
              color: #999;
            }
          }
        }
        .btns{
          position: absolute;
          right:40/$f+vw;
          bottom:73/$f+vw;
          display: flex;
          a{
            color:#1A53F0;
            font-size: 16/$f+vw;
            &:first-child{
              margin-right: 80/$f+vw;
            }
          }
        }
      }
    }
  }
  @media screen and (max-width: 1024px){
    .banner{
      margin-top: 60px;
      padding: 30px 5%;
      .t{
        font-size: 24px;
      }
      .tip{
        font-size: 16px;
        margin: 20px 0 40px 0;
      }
      .boxs{
        margin-bottom: 16px;
        .box{
          .info{
            flex-direction: column;
            align-items: flex-start;
            .l{
              width: 100%;
              padding:20px;
              .p1{
                font-size: 20px;
                margin-bottom: 10px;
              }
              .tags{
                span{
                  font-size: 16px;
                }
              }
            }
            .r{
              img{
                width: 100%;
                height: auto;
              }
            }
          }
        }
      }
      .types{
        flex-wrap: wrap;
        .item{
          padding: 20px 0;
          width: 100%;
          border-right: none;
          border-bottom: 1px solid rgba(0, 0, 0, 0.10);
          &::after{
            height: 2px;
          }
          .icon{
            img{
              width: 30px;
            }
          }
          p{
            font-size: 18px;
            margin-left: 15px;
          }
        }
      }
    }
    .main{
      margin: 60px 5%;
      .t{
        font-size: 24px;
      }
      .search{
        margin: 20px 0 12px 0;
        .sr{
          .icon{
             display: none;
          }
           input{
            width: 260px;
            height: 35px;
            padding: 13px;
            font-size: 16px;
           }
        }
        .btn{
          width: 60px;
          height: 35px;
          font-size: 16px;
        }
      }
      .hot{
        width: 320px;
        flex-direction: column;
        .p1{
          font-size: 16px;
        }
        .tags{
          display: flex;
          flex-wrap: wrap;
          span{
            font-size: 16px;
            margin: 6px 15px 0 0;
          }
        }
      }
      .list{
        margin-top: 20px;
        .item{
         padding: 20px;
         margin-bottom: 20px;
         .name{
          font-size: 18px;
          padding-bottom: 10px;
         }
         .tags{
          margin-top: 15px;
          span{
            font-size: 16px;
          }
         }
         .btns{
          position: static;
          right:0;
          bottom:0;
          margin-top: 15px;
          a{
            font-size: 16px;
            &:first-child{
              margin-right: 30px;
            }
          }
         }
        }
      }
    }
  }
}